<extend name="Common/common"/>
<block name="main">
    <div class="right-title">评价数据统计</div>
    <div class="right-content">
        <table border="0" class="table">
            <tr class="table-theadadjust">
                <td>已评价总数量</td>
                <td>{$total|default=0}</td>
            </tr>
            <tr class="table-theadadjust">
                <td>月份统计</td>
                <td></td>
            </tr>
            <tr class="table-theadadjust">
                <td>月份</td>
                <td id="mydate">{$date}</td>
            </tr>
            <tr class="table-theadadjust">
                <td>当月评价数量</td>
                <td id="now_num">{$count|default=0}</td>
            </tr>
        </table>
        <div id="my_contain" style="display: none">
            <div class="adjsuttwo-title">
                <span class="adjust-border">
                    <span class="click">评价信息</span>
                </span>
            </div>
            <table border="0" class="patinet-content">
                <tr class="patient">
                    <td>患者</td>
                    <td>时间</td>
                    <td>疾病</td>
                    <td>内容</td>
                    <td>星级</td>
                </tr>
                <tbody id="mybody">

                </tbody>
            </table>
        </div>
    </div>
</block>
<block name="css">
    <link rel="stylesheet" type="text/css" href="__JS__/doctor/monthpick/jquery.monthpicker.css" />
</block>
<block name="js">
    <script src="__JS__/doctor/monthpick/jquery.monthpicker.js"></script>
    <script src="__JS__/doctor/datepick.js"></script>
    <script type="text/javascript">
        time_url = "{:U('getAssess')}";
        pre_handle = function () {
            //清空数据
            $('#mybody').empty();
            $('#my_contain').hide();
        };
        handle_func = function (valueText,data) {
            if(data.count>0){
                //添加数据
                var html = '';
                $.each(data.data,function (i,n) {
                    html += '<tr class="patient nobg">\
                            <td>'+n.name+'</td>\
                    <td>'+n.date+'</td>\
                    <td>'+n.disease+'</td>\
                    <td>'+n.intro+'</td>\
                    <td>'+n.score+'</td>\
                    </tr>';
                });
                //显示数据
                $('#mybody').html(html);
                $('#my_contain').show();
            }
            //显示个数
            $('#mydate').val(valueText);
            $('#now_num').text(data.count);
        };
    </script>
</block>